#include <iostream>
#include "armure.h"

using namespace std;

Armure::Armure() : m_nom("Armure rouillé"), m_pDef(10), m_mDef(5)
{
}

Armure::Armure(string nom, int pDef, int mDef) : m_nom(nom), m_pDef(pDef), m_mDef(mDef)
{
}

void Armure::changer(string nom, int pDef, int mDef)
{
    m_nom = nom;
    m_pDef = pDef;
	m_mDef = mDef;
}

int Armure::getPDef() const
{
    return m_pDef;
}

int Armure::getMDef() const
{
    return m_mDef;
}

void Armure::afficher()
{
    cout << "Arme : " << m_nom << " Degats Physique : " << m_pDef << " Degat Magique:" << m_mDef << endl;
}
